//
//  DSOrderListCell.m
//  DSJY
//
//  Created by 冯华强 on 16/9/24.
//  Copyright © 2016年 dsjy. All rights reserved.
//  订单Cell

#import "DSOrderListCell.h"
#import "DSOrder.h"
#import "UIColor+Extension.h"

@interface DSOrderListCell ()
#pragma mark - 拖线属性
//购买时长
@property (weak, nonatomic) IBOutlet UILabel *yearLabel;
//付款方式
@property (weak, nonatomic) IBOutlet UILabel *channelLabel;
//状态
@property (weak, nonatomic) IBOutlet UILabel *statusLabel;
//开始时间2015-10-12 12:12:12
@property (weak, nonatomic) IBOutlet UILabel *startdateLabel;
//结束时间2015-10-12 12:12:12
@property (weak, nonatomic) IBOutlet UILabel *enddateLabel;
@end

@implementation DSOrderListCell

#pragma mark - 设置UI
- (void)setOrder:(DSOrder *)order
{
    _order = order;
    
    //设置值
    self.yearLabel.text = order.yearString;
    self.channelLabel.text = order.channelString;
    self.statusLabel.text = order.statusString;
    self.startdateLabel.text = order.startdate;
    self.enddateLabel.text = order.enddate;
}

@end
